<template>
  <div class="app-container home">
    <div class="dashboard-container">
      <!-- 顶部欢迎区域 -->
      <div class="welcome-section">
        <h1>欢迎使用 Triz 智慧管理系统</h1>
        <p class="subtitle">高效 · 智能 · 安全的管理平台</p>
        <div class="version-tag">v{{ version }}</div>
      </div>

      <!-- 流程图区域 -->
      
			<div class="flow-chart-container">
				<h1 class="flow-chart-title">TRIZ问题解决流程图</h1>
				<div class="flow-chart">
					<!-- 基本信息 -->
					<div class="flow-step basic-info">
						<div class="step-header">基本信息</div>
						<div class="step-content">
							<div class="step-item">项目信息</div>
							<div class="step-item">国家政策</div>
							<div class="step-item">行业发展</div>
							<div class="step-item">项目痛点</div>
							<div class="step-item">专利查询</div>
							<div class="step-item">预期目标</div>
						</div>
					</div>
					
					<div class="step-connector"></div>
					
					<!-- 问题识别 -->
					<div class="flow-step problem-identify">
						<div class="step-header">问题识别</div>
						<div class="step-content">
							<div class="step-item">创新标杆</div>
							<div class="step-item">功能分析</div>
							<div class="step-item">流分析</div>
							<div class="step-item">因果链分析</div>
							<div class="step-item">进化趋势分析</div>
							<div class="step-item">特性传递</div>
							<div class="step-item">剪裁</div>
							<div class="step-item">关键问题分析</div>
							
						</div>
					</div>
					
					<div class="step-connector"></div>
					<div class="step-item">概念方向开发</div>
					<div class="step-connector"></div>
					
					<!-- 问题解决 -->
					<div class="flow-step problem-solving">
						<div class="step-header">问题解决</div>
						<div class="solving-content">
							<div class="solving-left">
								<div class="step-item">发明问题解决算法ARIZ应用</div>
								<div class="step-item">克隆问题的应用</div>
								<div class="step-item">发明原理的应用</div>
							</div>
							<div class="solving-divider"></div>
							<div class="solving-right">
								<div class="step-item">功能导向搜索</div>
								<div class="step-item">标准解的应用</div>
								<div class="step-item">科学效应库的应用</div>
							</div>
						</div>
					</div>
					
					<div class="step-connector"></div>
					
					<!-- 概念实施 -->
					<div class="flow-step concept-implement">
						<div class="step-header">概念实施</div>
						<div class="step-content">
							<div class="step-item">解决次级问题</div>
							<div class="step-item">方案验证</div>
							<div class="step-item">超效应分析</div>
							<div class="step-item">概念评估</div>
						</div>
					</div>
				</div>
			</div>
		
    
		
			<div style="margin-bottom: 50px;"></div>
			<h2>示意图：</h2>
			<el-image :src="flowImg" />
		
		</div>
  </div>
</template>

<script setup name="Index">
import flowImg from '@/assets/images/flow.png';   

const version = ref('0.1')

function goTarget(url) {
  window.open(url, '__blank')
}
</script>

<style scoped lang="scss">
.home {


  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }


  /* 新增样式 */
  .dashboard-container {
    padding: 20px;
    background-color: #f5f7fa;
  }

  .welcome-section {
    margin-bottom: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;

    h1 {
      font-size: 32px;
      color: #303133;
      margin-bottom: 10px;
      font-weight: 500;
    }

    .subtitle {
      font-size: 16px;
      color: #909399;
    }

    .version-tag {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #409EFF;
      color: white;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 12px;
    }
  }

  /* 流程图样式 */

  .flow-chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .flow-chart-title {
    text-align: center;
    margin-bottom: 20px;
    color: #303133;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
  }

  .flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .flow-step {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    
    // 基本信息块 - 浅蓝色背景
    &.basic-info {
      background-color: #e6f7ff;
      border: 1px solid #91d5ff;
    }
    
    // 问题识别块 - 浅绿色背景
    &.problem-identify {
      background-color: #f6ffed;
      border: 1px solid #b7eb8f;
    }
    
    // 问题解决块 - 浅黄色背景
    &.problem-solving {
      background-color: #fffbe6;
      border: 1px solid #ffe58f;
    }
    
    // 概念实施块 - 浅紫色背景
    &.concept-implement {
      background-color: #f9f0ff;
      border: 1px solid #d3adf7;
    }
  }

  .step-header {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    color: #303133;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    min-width: 120px;
  }

  .step-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .step-item {
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    background-color: white;
    font-size: 14px;
    min-width: 120px;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    background-color: #333;
    margin: 0 auto 10px;
    position: relative;
  }

  .step-connector:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #333;
  }

  .solving-content {
    display: flex;
    width: 100%;
    gap: 20px;
  }

  .solving-left, .solving-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .solving-divider {
    width: 2px;
    background-color: #333;
    margin: 0 20px;
  }

  .problem-solving .step-item {
    width: 100%;
    max-width: 280px;
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .solving-content {
      flex-direction: column;
    }
    
    .solving-divider {
      width: 100%;
      height: 2px;
      margin: 10px 0;
    }
    
    .step-content {
      flex-direction: column;
      align-items: center;
    }
    
    .step-item {
      width: 100%;
      max-width: 300px;
    }
  }
}
</style>